home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 February / PCWorld_2000-02_cd.bin / Software / Vyzkuste / xsetup / _SETUP.2 / Group3 / XQ Shortcut 1.xpl < prev    next >
Text File  |  1999-11-01  |  2KB  |  64 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="2"
  4. "UIPATH"="Appearance\Explorer\Shortcuts"
  5. "NAME"="Arrow"
  6. "VERSION"="1.20"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Display arrow on shortcuts"
  9. "TEXT 2"="Display arrow on DOS-shortcuts (*.pif)"
  10. "DESCRIPTION 1"="To display the white arrow in the left corner of a shortcut, activate the first option."
  11. "DESCRIPTION 2"="To display the white arrow in the left corner of a shortcut to a DOS-program (*.pif), activate the second option."
  12. "AUTHOR"="Xteq Systems"
  13. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  14. "COMMENT 1"="For more information, go to http://www.xteq.com"
  15.  
  16.  
  17.  
  18.  
  19. Sub Plugin_Initialize 
  20.  s=RegReadValue("HKCR\Lnkfile\IsShortcut")
  21.  if IsEmpty(s)=false then
  22.     SetUIElement 1,true
  23.  end if
  24.  
  25.  s=RegReadValue("HKCR\piffile\IsShortcut")
  26.  if IsEmpty(s)=false then
  27.     SetUIElement 2,true
  28.  end if
  29. End Sub
  30.  
  31. Sub Plugin_CheckData(ElementIndex)
  32. End Sub
  33.  
  34. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  35.  b=GetUIElement(1)
  36.  if b=true then
  37.     Call RegWriteValue("HKCR\Lnkfile\IsShortcut","",1)
  38.  else
  39.     s=RegReadValue("HKCR\Lnkfile\IsShortcut")
  40.     if IsEmpty(s)=false then
  41.        Call RegDeleteValue("HKCR\Lnkfile\IsShortcut")
  42.     end if
  43.  end if
  44.  
  45.  b=GetUIElement(2)
  46.  if b=true then
  47.     Call RegWriteValue("HKCR\piffile\IsShortcut","",1)
  48.  else
  49.     s=RegReadValue("HKCR\piffile\IsShortcut")
  50.     if IsEmpty(s)=false then
  51.        Call RegDeleteValue("HKCR\piffile\IsShortcut")
  52.     end if
  53.  end if
  54.  
  55.  Restart
  56. End Sub
  57.  
  58.  
  59. Sub Plugin_Terminate 
  60. End Sub
  61.  
  62.  
  63.  
  64.